package com.shangcheng.server.controller;

import com.shangcheng.model.domain.UmsMemberLevel;
import com.shangcheng.model.vo.result.Result;
import com.shangcheng.server.service.UmsMemberLevelService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @author shiqiang
 * @version 1.0
 * @date 2022/5/13 22:21
 */
@RestController
@RequestMapping("/memberLevel")
public class UmsMemberLevelController {
    @Autowired
    private UmsMemberLevelService umsMemberLevelService;
    @GetMapping("/list")
    public ResponseEntity memberLevelList(@RequestParam Integer defaultStatus){
        List<UmsMemberLevel> list= umsMemberLevelService.memberLevelList(defaultStatus);
        return ResponseEntity.ok(new Result(200,list,null));
    }
}
